python bold text

63

bold text variable in python -

bolded_string = "\033[1m" + a_string + "\033[0m"

python bold -

# Make sure to run in the right terminal

red = '\033[91m'
green = '\033[92m'
blue = '\033[94m'
bold = '\033[1m'
italics = '\033[3m'
underline = '\033[4m'
end = '\033[0m'

print (red + underline + 'Test!... Test!' + end)

python bold text -

class color:
   BOLD = '\033[1m'
   END = '\033[0m'

print(color.BOLD + 'Hello World !' + color.END)

how to bold in colorama -

from simple_colors import *
print(green('hello', 'bold'))

Comments

Submit
0 Comments